package particle;

import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;

public class Test extends Application {
	ParticleSystem ps;

	BorderPane b = new BorderPane();
	Scene s;
	public static Group h = new Group();

	@Override
	public void start(Stage arg0) throws Exception {
		s = new Scene(b, 900, 600);
		b.setStyle("-fx-background-color:rgba(0,0,0,1.0);");
		arg0.setScene(s);
		b.getChildren().add(h);
		ps = new ParticleSystem("star.plist");
		ps.update(0.1);
		h.getChildren().add(ps.getBatchNode());
		
		arg0.show();
	}

	public static void main(String[] args) {
		launch(args);
	}
}
